package demo02;

public class InterfaceTest_1 {
    public static void main(String[] args) {
        MyInterface<Integer> impl=new MyInterface<>();
        impl.method(12);
        impl.setAge(12);
        Integer age = impl.getAge();
        System.out.println(age);
        MyInterface<String>imp=new MyInterface<>();
        imp.method("25");
        imp.setName("五开吧");
        String name = imp.getName();
        System.out.println(name);


    }
}
